package jsjf;

public class testStack {
    public static void main(String[] args) {
        ArrayStack arrayStack = new ArrayStack();

        arrayStack.push(666);
        arrayStack.push("java真难");
        arrayStack.push(1);
        System.out.println("栈：" + arrayStack.toString());
        System.out.println("栈顶：" + arrayStack.peek());
        System.out.println("栈是否为空：" + arrayStack.isEmpty());
        arrayStack.pop();
        System.out.println("弹栈后栈大小：" + arrayStack.size());
        System.out.println("弹栈后栈：" + arrayStack.toString());


    }
}
